package org.warehouse.dao.engine;

import java.util.List;

import org.springframework.jdbc.support.rowset.SqlRowSet;
import org.warehouse.dao.exception.DaoException;

public interface IDbExecutor {
    SqlRowSet invoke(String sql) throws DaoException;

    SqlRowSet invoke(String sql, List<DataObject<?>> dataList) throws DaoException;
    
    int invokeUpdate(String sql) throws DaoException;

    int invokeUpdate(String sql, List<DataObject<?>> dataList) throws DaoException;
}
